﻿using System;
using FU.Capstones.IMS.Web.Common;
using FU.Capstones.IMS.Web.Common.InventoryServiceProxy.DataContracts;
using FU.Capstones.IMS.Web.Common.InventoryServiceProxy.EventArgs;

namespace FU.Capstones.IMS.Web.Silverlight.Models
{
    public class ProductExportModel:ModelBase
    {
        public ProductExportModel()
        {
            client.GetSingleWarehouseCompleted += DoGetSingleWarehouseCompleted;

        }
        #region DoGetSingleWarehouseCompleted

        public event EventHandler<SingleFeedbackCompletedEventArgs<Warehouse>> GetSingleWarehouseCompleted;
        void DoGetSingleWarehouseCompleted(object sender, SingleFeedbackCompletedEventArgs<Warehouse> e)
        {
            if (GetSingleWarehouseCompleted != null)
            {
                GetSingleWarehouseCompleted(sender, e);
            }
        }
        public int GetSingleWarehouseAsync(int warehouseId)
        {
            client.GetSingleWarehouseAsync(warehouseId);
            return WebConstants.MagicNumer;
        }

        #endregion
    }
}
